<div class="pageContent">
	<form method="post" action="{:U('Friendlink/editLink?act=exec')}" class="pageForm required-validate" enctype="multipart/form-data" onsubmit="return iframeCallback(this, 
dialogAjaxDone);">
		<input type="hidden" name="id" value="{$link.id}" />
		<div class="pageFormContent" layoutH="58">
			<div class="unit">
				<label>{$Think.lang.LINK_NAME}：</label>
				<input type="text" name="link_name" size="30" class="required" minlength="1" maxlength="50" value="{$link.link_name}"/>
			</div>
			<div class="unit">
				<label>{$Think.lang.LINK_URL}：</label>
				<input  type="text" size="30" name="link_url" class="required url" value="{$link.link_url}"/>
			</div>
			<div class="unit">
				<label>{$Think.lang.SHOW_PRIORITY}：</label>
				<select class="combox" name="link_priority" id="priority">
					<option value="0">{$Think.lang.M_LOWEST}</option>
					<option value="10">10</option>
					<option value="10">20</option>
					<option value="10">30</option>
					<option value="10">40</option>
					<option value="50">{$Think.lang.M_NORMAL}</option>
					<option value="10">60</option>
					<option value="10">70</option>
					<option value="10">80</option>
					<option value="10">90</option>
					<option value="99">{$Think.lang.M_HIGHEST}</option>
				</select>
			</div>
			<div class="unit">
				<label>{$Think.lang.SHOW_STYLE}：</label>
				<label style="width:100px"><input type="radio" name="link_style" <if condition="$link['link_style'] eq 0">checked="checked"</if> value="0"/>{$Think.lang.UI_STRING}</label>
				<label style="width:100px"><input type="radio" name="link_style" value="1" <if condition="$link['link_style'] eq 1">checked="checked"</if>/>{$Think.lang.UI_IMAGES}LOGO</label>
			</div>
			<div class="unit">
				<label>LOGO：</label>
				<input type="file" name="link_image" /><br />
				<img src="{$link.link_image|imageUrl}" style="height:50px;" />
			</div>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">{$Think.lang.UI_SUBMIT}</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">{$Think.lang.UI_CANCEL}</button></div></div></li>
			</ul>
		</div>
	</form>
</div>
<script type="text/javascript">
	$(function(){
		$("#priority").attr("value","{$link.link_priority}");
	});
</script>